﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FreeDAM.Domain.Entities;

namespace FreeDAM.Domain.Abstract
{
    public interface IRepository<T> where T : EntityBase
    {
        IQueryable<T> All { get; }
        T Find(int id);
        void InsertOrUpdate(T entity);
        void Delete(int id);
        void Save();
    }
}
